package com.jeesite.modules.kj.api.vo.request;

import com.jeesite.common.entity.Page;
import com.jeesite.modules.kj.entity.KjContributeProject;
import com.jeesite.modules.kj.entity.KjProjectTeam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class TeamBuildRequestVo {


    @ApiModelProperty(name="name", value ="团队名", example = "1")
    String name;
    @ApiModelProperty(name="projectId", value ="项目Id", example = "1")
    String projectId;

    @ApiModelProperty(name="remarks", value ="描述", example = "为了扶贫")
    String remarks;

    @ApiModelProperty(name="limitNum", value ="最多人数", example = "15")
    Long limitNum;

    @ApiModelProperty(name="targetIntegrals", value ="目标积分", example = "15")
    BigDecimal targetIntegrals;


    public KjProjectTeam convertToEntity(){
        KjProjectTeam team = new KjProjectTeam();
        BeanUtils.copyProperties(this, team);
        return team;
    }
}
